package com.Utils;

import com.helper.ExcelToBeanConvertor;
import com.helper.Student;
import org.apache.commons.lang3.ArrayUtils;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Test {
    public static void main(String[] args) throws FileNotFoundException {
        FileInputStream in = new FileInputStream("G:\\Excel练习\\写入信息.xls");
        Map<String, List<Object[]>> map = ExcelUtils.readTomap(in);
        Set<Map.Entry<String, List<Object[]>>> set = map.entrySet();
        for (Map.Entry<String, List<Object[]>> entry : set) {
            List<Object[]> value = entry.getValue();
            for (Object[] objects : value) {
                System.out.println(ArrayUtils.toString(objects));

            }
        }


    }
}
